import prompt from '@system.prompt';

export default {
    data: {
        bottom_nav_res:[
            {img_show:'/common/public_res/outbookshelf_img.png',img_out:'/common/public_res/outbookshelf_img.png',img_on:'/common/images/yidou_logo.jpg',pages_show:false,t:'书架'},
            {img_show:'/common/public_res/onbookstore_img.png',img_out:'/common/public_res/outbookstore_img.png',img_on:'/common/public_res/onbookstore_img.png',pages_show:true,t:'书城'},
            {img_show:'/common/public_res/outwelfare_img.png',img_out:'/common/public_res/outwelfare_img.png',img_on:'/common/public_res/onwelfare_img.png',pages_show:false,t:'福利'},
            {img_show:'/common/public_res/outsort_img.png',img_out:'/common/public_res/outsort_img.png',img_on:'/common/public_res/onsort_img.png',pages_show:false,t:'分类'},
            {img_show:'/common/public_res/outmine_img.png',img_out:'/common/public_res/outmine_img.png',img_on:'/common/public_res/onmine_img.png',pages_show:false,t:'我的'},
        ],
        laston_index:1,
    },
    clickBottom_nav_items(index){
        this.bottom_nav_res[this.laston_index].img_show = this.bottom_nav_res[this.laston_index].img_out;
        this.bottom_nav_res[this.laston_index].pages_show = false;
        this.laston_index = index;
        this.bottom_nav_res[this.laston_index].img_show = this.bottom_nav_res[this.laston_index].img_on;
        this.bottom_nav_res[this.laston_index].pages_show = true;
    },
}
